Template:ReadMore: Difference between revisions
From Pressure Wiki
Content deleted Content added
m Fixed template |
m Added category |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
<onlyinclude>{{#ifeq: {{{type|}}} | external | <div style="float: right; font-weight: bold; font-size: 115%;">[{{{link|}}} {{{text|READ MORE}}}]</div> | <div style="float: right; font-weight: bold; font-size: 115%;">[[{{{link|Pressure}}}|{{{text|READ MORE}}}]]</div>}}</onlyinclude>
<noinclude>
== Documentation ==
This template is used to display a large "READ MORE" button. This button automatically aligns right and will link to any page you set as a parameter. If no link is given, it will default to the page [[Pressure]].
If the parameter "type" is set to "external", it will instead link to an external page. Otherwise, it will always link to an internal page and the parameter can be removed.
If the parameter "text" is not given, it will default to "READ MORE". The parameter "text" can be used to set a custom message in lieu of the standard "READ MORE".
=== Example Usage ===
The following example uses no type.
Line 10 ⟶ 12:
<br>
The following example uses type=external.
{{ReadMore|type=external|link=https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifeq|text=MEDIAWIKI}}
=== Formatting ===
<pre>
{{ReadMore
|type =
|link =
|text =
}}
</pre>
[[Category:Templates]]
</noinclude>
|
Latest revision as of 07:10, 24 July 2024
Documentation
This template is used to display a large "READ MORE" button. This button automatically aligns right and will link to any page you set as a parameter. If no link is given, it will default to the page Pressure.
If the parameter "type" is set to "external", it will instead link to an external page. Otherwise, it will always link to an internal page and the parameter can be removed.
If the parameter "text" is not given, it will default to "READ MORE". The parameter "text" can be used to set a custom message in lieu of the standard "READ MORE".
Example Usage
The following example uses no type.
The following example uses type=external.
Formatting
{{ReadMore |type = |link = |text = }}