Template:Show: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly></includeonly><noinclude> ==Usage== Activates preview for template:unlock. Put it at the top of a page to show, what locked text would look like. {{note|Pleas...")
 
No edit summary
Line 1: Line 1:
<includeonly></includeonly><noinclude>
<includeonly>{{#vardefine:show|SHOW}}{{note|This page is in preview mode below this note; comp. [[template:show]].}}</includeonly><noinclude>
==Usage==
==Usage==
Activates preview for [[template:unlock]]. Put it at the top of a page to show, what locked text would look like.
Activates preview for [[template:unlock]]. Put it at the top of a page to show, what locked text would look like.
{{note|Please, use temporarily only! Otherwise the purpose of [[template:unlock]] is undercut!|error}}
{{note|Please, use temporarily only! Otherwise the purpose of [[template:unlock]] is undercut!|error}}
==Example==
<pre>{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}</pre> delivers
Without template:show:
<pre>{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}</pre>
Using <nowiki>{{show}}</nowiki>:
{{show}}{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}


[[category:template]]
[[category:template]]
</noinclude>
</noinclude>

Revision as of 15:08, 13 May 2021

Usage

Activates preview for template:unlock. Put it at the top of a page to show, what locked text would look like.

Please, use temporarily only! Otherwise the purpose of template:unlock is undercut!

Example

{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}

delivers

Without template:show:

{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}

Using {{show}}:


🗒️ This page is in preview mode below this note; comp. template:show.

Hide under current version; show otherwise