Template:User: Difference between revisions

From The Reed and Rite
mNo edit summary
m Removed background color to allow dynamic color shift in dark mode.
 
(22 intermediate revisions by the same user not shown)
Line 4: Line 4:
-->| caption = {{{caption|}}}<!--
-->| caption = {{{caption|}}}<!--
-->| data_rows =<!--
-->| data_rows =<!--
LOCATION
-->{{#if: {{{location|}}} |<tr class="infobox-data-row"><th>Location</th><td>{{{location}}}</td></tr>}}<!--
-->{{#if: {{{location|}}} |<tr class="infobox-data-row"><th>Location</th><td>{{{location}}}</td></tr>}}<!--
-->{{#if: {{{date_joined|}}} |<tr class="infobox-data-row"><th>Date Joined</th><td>{{{date_joined}}}</td></tr>}}<!--
 
DATE JOINED
--><tr class="infobox-data-row"><th>Date Joined</th><td>{{#show: User:{{PAGENAME}} |?User registration date |format=plain}}</td></tr><!--
 
EDIT COUNT
--><tr class="infobox-data-row"><th>Edit Count</th><td>[[Special:EditCount/{{PAGENAME}}|{{#show: User:{{PAGENAME}} |?User edit count |format=plain}}]]</td></tr><!--
 
SOCIAL MEDIA
-->{{#if: {{{social_media|}}} |<tr class="infobox-data-row"><th>Social Media</th><td>{{{social_media}}}</td></tr>}}<!--
-->{{#if: {{{social_media|}}} |<tr class="infobox-data-row"><th>Social Media</th><td>{{{social_media}}}</td></tr>}}<!--
--><tr class="infobox-data-row"><th>Edit Count</th><td>[[Special:EditCount/{{PAGENAME}}|{{#editcount: {{PAGENAME}} }}]]</td></tr><!--
 
WIKI LINKS
-->{{#if: {{{wiki_links|}}} |<tr class="infobox-data-row"><th>Wiki Links</th><td>{{{wiki_links}}}</td></tr>}}<!--
-->{{#if: {{{wiki_links|}}} |<tr class="infobox-data-row"><th>Wiki Links</th><td>{{{wiki_links}}}</td></tr>}}<!--
-->{{#if: {{{td1|}}} |<tr class="infobox-data-row"><th>To-do List</th><td>&#9702; {{{td1}}}</td></tr>}}<!--
 
-->{{#if: {{{td2|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td2}}}</td></tr>}}<!--
TO-DO LIST
-->{{#if: {{{td3|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td3}}}</td></tr>}}<!--
-->{{#if: {{{td1|}}}{{{td2|}}}{{{td3|}}}{{{td4|}}}{{{td5|}}}{{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<tr class="infobox-data-row"><th>To-do List</th><td><!--
-->{{#if: {{{td4|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td4}}}</td></tr>}}<!--
  -->{{#if: {{{td1|}}} |• {{{td1}}}{{#if: {{{td2|}}}{{{td3|}}}{{{td4|}}}{{{td5|}}}{{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td5|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td5}}}</td></tr>}}<!--
  -->{{#if: {{{td2|}}} |• {{{td2}}}{{#if: {{{td3|}}}{{{td4|}}}{{{td5|}}}{{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td6|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td6}}}</td></tr>}}<!--
  -->{{#if: {{{td3|}}} |• {{{td3}}}{{#if: {{{td4|}}}{{{td5|}}}{{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td7|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td7}}}</td></tr>}}<!--
  -->{{#if: {{{td4|}}} |• {{{td4}}}{{#if: {{{td5|}}}{{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td8|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td8}}}</td></tr>}}<!--
  -->{{#if: {{{td5|}}} |• {{{td5}}}{{#if: {{{td6|}}}{{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td9|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td9}}}</td></tr>}}<!--
  -->{{#if: {{{td6|}}} |• {{{td6}}}{{#if: {{{td7|}}}{{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
-->{{#if: {{{td10|}}} |<tr class="infobox-data-row"><th></th><td>&#9702; {{{td10}}}</td></tr>}}
  -->{{#if: {{{td7|}}} |• {{{td7}}}{{#if: {{{td8|}}}{{{td9|}}}{{{td10|}}} |<br>}} }}<!--
}}
  -->{{#if: {{{td8|}}} |• {{{td8}}}{{#if: {{{td9|}}}{{{td10|}}} |<br>}} }}<!--
  -->{{#if: {{{td9|}}} |• {{{td9}}}{{#if: {{{td10|}}} |<br>}} }}<!--
  -->{{#if: {{{td10|}}} |• {{{td10}}} }}<!--
--></td></tr>}}<!--
 
SUB PAGES
-->{{#if: {{{sub_pages|}}} |<tr class="infobox-data-row"><th>Sub Pages</th><td>[[Special:PrefixIndex/User:{{PAGENAME}}/|List of Subpages]]</td></tr>}}<!--
-->}}
</includeonly><noinclude>
</includeonly><noinclude>
== Description ==
== Description ==
This template should be used on user pages to add an infobox in the upper right hand corner of the page.


{{User
== Usage ==
|location=test
The template has several [[:Template:Location#Parameters|parameters]] that can be used.
| social_media = [http://www.twitter.com/mkbhd Twitter], [http://www.youtube.com/mkbhd YouTube]
: '''Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each location.'''
|td1= Finish reviewing recent edits
 
|td2= Update project documentation
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|td3=Respond to user feedback
|-
|td4=Finish reviewing recent edits
! width=50%|You Type
|td5=Update project documentation
!You Get
|td6=Respond to user feedback
|-
|wiki_links=[[Mediawiki:Common.css]]<br>[[Mediawiki:Common.js]]
| style="text-align: left; vertical-align: top;" |<pre>{{user
|image=FILENAME.EXTENSION
|caption=Caption Here
|location=Country/State of your Location
|social_media = [https://www.example.com DISPLAYTEXT]
|wiki_links=[[Main Page]]<br>[[:Help:Contents]]
|td1=Displays a to-do list.
|td2=Up to ten items.
|td3= Use <code>tdX=</code>, where "<code>X</code>" is a number 1–10.
|sub_pages=yes
}}
</pre>
|<br>{{user
|image=pen.png
|caption=Caption Here
|location=Country/State of your Location
|social_media = [https://www.example.com DISPLAYTEXT]
|wiki_links=[[Main Page]]<br>[[:Help:Contents]]
|td1=Displays a to-do list.
|td2=Up to ten items.
|td3= Use <code>tdX=</code>, where "<code>X</code>" is a number 1–10.
|sub_pages=yes
}}
}}
|}
=== Parameters ===
{| class="wikitable" style="width: 100%;"
! Parameter !! Description
|-
| style="text-align: center;" | <code>name</code> || Name is automatically passed based on the page it is used on.
|-
| style="text-align: center;" | <code>image</code> || Filename of the image (e.g., `File:Example.jpg`).
|-
| style="text-align: center;" | <code>caption</code> || Caption for the image.
|-
| style="text-align: center;" | <code>location</code> || The country/state the user is located in. Use with caution.
|-
| style="text-align: center;" | <code>date_joined</code> || The date the user joined the wiki.
|-
| style="text-align: center;" | '''Edit Count''' || This parameter is automatically called. Displays the number of edits that user has made wiki wide, linking to the corresponding page on [[Special:EditCount]].
|-
| style="text-align: center;" | <code>social_media</code> || Link to user's social media. Call by using an [[:Help:Markup#External_Links|External Link]].
|-
| style="text-align: center;" | <code>wiki_links</code> || Use to link to other wiki pages for quick reference.<br>Use double brackets <code>[[</code> and <code>]]</code> for each wiki page (e.g., <code><nowiki>[[Main Page]]</nowiki></code>) and <code><nowiki><br></nowiki></code> between each link.
|-
| style="text-align: center;" | <code>td1=</code>, <code>td2=</code>, <code>td3=</code>, etc. || To-do list, up to ten items.
|-
| style="text-align: center;" | <code>subpages=yes</code> || Provides a link to a list all of that user's sub pages.
|}
== Pages Using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=2|limit=100}}
[[Category:Infoboxes]]

Latest revision as of 22:38, 27 May 2025

Description

This template should be used on user pages to add an infobox in the upper right hand corner of the page.

Usage

The template has several parameters that can be used.

Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each location.
You Type You Get
{{user
|image=FILENAME.EXTENSION
|caption=Caption Here
|location=Country/State of your Location
|social_media = [https://www.example.com DISPLAYTEXT]
|wiki_links=[[Main Page]]<br>[[:Help:Contents]]
|td1=Displays a to-do list.
|td2=Up to ten items.
|td3= Use <code>tdX=</code>, where "<code>X</code>" is a number 1–10.
|sub_pages=yes
}}

User
Caption Here
Caption Here
Caption Here
LocationCountry/State of your Location
Date Joined
Edit Count[[Special:EditCount/User|]]
Social MediaDISPLAYTEXT
Wiki LinksMain Page
Help:Contents
To-do List• Displays a to-do list.
• Up to ten items.
• Use tdX=, where "X" is a number 1–10.
Sub PagesList of Subpages

Parameters

Parameter Description
name Name is automatically passed based on the page it is used on.
image Filename of the image (e.g., `File:Example.jpg`).
caption Caption for the image.
location The country/state the user is located in. Use with caution.
date_joined The date the user joined the wiki.
Edit Count This parameter is automatically called. Displays the number of edits that user has made wiki wide, linking to the corresponding page on Special:EditCount.
social_media Link to user's social media. Call by using an External Link.
wiki_links Use to link to other wiki pages for quick reference.
Use double brackets [[ and ]] for each wiki page (e.g., [[Main Page]]) and <br> between each link.
td1=, td2=, td3=, etc. To-do list, up to ten items.
subpages=yes Provides a link to a list all of that user's sub pages.

Pages Using Template