Template:LP imported: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
m (Testing changes)
m (Documentation)
Line 5: Line 5:
| type  = notice
| type  = notice
| image = none
| image = none
| issue = This  
| issue = This {{{1|{{#switch: {{NAMESPACE}}|Template=template|Help=Help page|Leftypedia=Leftypedia namespace page|Article = article|page}}}}} '''has been imported''' from an archived version of Leftypedia. '''Do NOT''' make any changes without consensus on the Matrix server or the [[{{TALKPAGENAME}}|talk page]].
{{{1|{{#switch: {{NAMESPACE}}|Template=template|Help=Help page|Leftypedia=Leftypedia namespace page|Article = article|page}}}}} '''has been imported''' from an archived version of Leftypedia. '''Do NOT''' make any changes without consensus on the Matrix server or the [[{{TALKPAGENAME}}|talk page]].
| talk  = {{{talk|}}}
| talk  = {{{talk|}}}
| date  = {{{date|}}}
| date  = {{{date|}}}
}}
}}
<noinclude>==Documentation==
The template will detect <code><nowiki>Template:</nowiki></code>, <code><nowiki>Help:</nowiki></code>, and <code><nowiki>Leftypedia:</nowiki></code> namespaces, and print the proper description, defaulting to "This page..." for all other namespaces. No parameters are needed. The one optional parameter is to replace the "article/page" text. For example:
<nowiki>{{LP imported|your text here}}</nowiki>
yields:
{{Ambox
| name  = LP imported
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| small = {{{small|}}}
| type  = notice
| image = none
| issue = This your text here '''has been imported''' from an archived version of Leftypedia. '''Do NOT''' make any changes without consensus on the Matrix server or the [[{{TALKPAGENAME}}|talk&nbsp;page]].
| talk  = {{{talk|}}}
}}</noinclude>
<!-- <includeonly>[[category:Recent imports]]</includeonly> -->
<!-- <includeonly>[[category:Recent imports]]</includeonly> -->
{{{1|{{{url|{{{URL|}}}}}}}}}

Revision as of 15:03, 27 April 2023

Documentation

The template will detect Template:, Help:, and Leftypedia: namespaces, and print the proper description, defaulting to "This page..." for all other namespaces. No parameters are needed. The one optional parameter is to replace the "article/page" text. For example:

{{LP imported|your text here}}

yields: