Content deleted Content added
Jayantanth (talk | contribs) + |
m syntaxhighlight lang="wikitext" |
||
(9 intermediate revisions by 8 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 =
Line 12 ⟶ 13:
|foreground = <!-- This is the color of the Box Section text -->
}}
{{
</syntaxhighlight>
== Layout 2 ==
<syntaxhighlight lang="wikitext">
{{Random portal component with nominate
|max =
Line 24 ⟶ 25:
|rootpage =
}}
</syntaxhighlight>
== Usage ==
Line 36 ⟶ 37:
=== Prerequisites ===
* Create a sub-page first. If your portal is '''Portal:''Foo''''', then a sub-page could be '''Portal:''Foo''/Selected ''bar''''';
* 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;
Line 42:
== Example ==
<syntaxhighlight lang="wikitext">
{{
|title = header
|editpage = Template:Lorem ipsum
Line 53:
}}
{{Lorem ipsum}}
{{
</syntaxhighlight>
will produce
{{
|editpage = Template:Lorem ipsum
|border = Black
|titleforeground = #ffe247
|titlebackground = #
|background = #FFFFFF
|foreground = black
}}
{{Lorem ipsum}}
{{
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 81 ⟶ 80:
{{portal template list}}
<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Wikipedia Portal templates
}}</includeonly>▼
▲</includeonly>
|