Content deleted Content added
Create documentation page |
m syntaxhighlight lang="wikitext" |
||
(15 intermediate revisions by 10 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{lua|Module:Random portal component}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
== Layout ==
<syntaxhighlight lang="wikitext">
{{
|title = header
|editpage=Template:Lorem ipsum▼
|editpage =
|border=Black <!-- This is the color of the borders around Box Sections -->▼
|
|
|
|
▲|
{{Lorem ipsum}}▼
}}
{{
</syntaxhighlight>
== Layout 2 ==
<syntaxhighlight lang="wikitext">
|max =
|header =
|footer =
|subpage =
|seed =
|rootpage =
}}
</syntaxhighlight>
== Usage ==
Line 24 ⟶ 37:
=== Prerequisites ===
* Create a
* On the '''Portal:Foo/Selected ''bar''''' sub-page, place the template {{tl|numbered subpages}} on the page and save it. The template will default to 50 subject sub-pages;
▲* Create a subpage first. If your portal is '''Portal:Foo''', then a subpage could be '''Portal:Foo/Selected picture'''.
* Once the list of subject links have been created, use one of the '''Selected ''subject''''' templates from below to format each of the subject sub-pages.
== Example ==
<syntaxhighlight lang="wikitext">
{{Portal:Box-header | title=header▼
{{Box-header
|editpage=Template:Lorem ipsum▼
|title = header
▲|editpage = Template:Lorem ipsum
|border = Black
|titleforeground = #ffe247
|titlebackground = #A9A9A9
|background = #FFFFFF
|foreground = black
}}
{{Lorem ipsum}}
{{
</syntaxhighlight>
will produce
▲|editpage = Template:Lorem ipsum
|border = Black
|titleforeground = #ffe247
|titlebackground = #646464
|background = #FFFFFF
|foreground = black
}}
▲{{Lorem ipsum}}
{{Box-footer |Suggest • Archive }}
To see a real time example, see [[Special:Whatlinkshere/Template:Random portal component with nominate]].
== Notes ==
'''Suggest''': a link to a nominate page that is located at '''Portal:yourportal/Nominate/Subpage name''' e.g. /Nominate/Selected picture.
I have found after attempting to get a portal featured that most people want to see a suggest link for all selected content. I loved the original random portal component but in order to add a second link to the bottom of a section you had to turn off the footer and create your own footers (for subpage and suggestions on each content page. So, instead of spending all that time to create links on subpages I thought my time would be better spent adding suggestions to the component itself.
Line 51 ⟶ 80:
{{portal template list}}
<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Wikipedia Portal templates
}}</includeonly>▼
▲[[Category:WikiProject templates|Random portal component with nominate]]
▲</includeonly>
|