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: | Line 1: | ||
<onlyinclude>{{#ifeq: {{{type|}}} | external | <div style="float: right; font-weight: bold; font-size: 115%;">[{{{link|}}} READ MORE]</div> | <div style="float: right; font-weight: bold; font-size: 115%;">[[{{{link|Pressure}}}|READ MORE]]</div>}}</onlyinclude> |
<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> |
<noinclude> |
||
== Documentation == |
== 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]]. |
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 "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 === |
=== Example Usage === |
||
The following example uses no type. |
The following example uses no type. |
||
Line 10: | Line 12: | ||
<br> |
<br> |
||
The following example uses type=external. |
The following example uses type=external. |
||
{{ReadMore|type=external|link=https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifeq}} |
{{ReadMore|type=external|link=https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifeq|text=MEDIAWIKI}} |
||
=== Formatting === |
=== Formatting === |
||
<pre> |
<pre> |
||
{{ReadMore |
{{ReadMore |
||
|type = |
|||
|link = |
|||
|text = |
|||
}} |
|||
</pre> |
</pre> |
||
[[Category:Templates]] |
|||
</noinclude> |
</noinclude> |