User:Timeshifter/Sandbox 2

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Note: Please see the comments on the talk page: User talk:Timeshifter/Sandbox 2

(Note to self: Keep this sandbox page on this topic). People seem to prefer this template to be shorter. Trying to lessen the blank space at the bottom of Template:Categorise. Also the blank space between the language list and the template text. See: Template:Categorise/en

The following examples show that the blank space/line/padding is added by how the Mediawiki software deals with the nested templates: {{Categorise/lang}} inside of {{Categorise/layout}}

Template:Categorise/layout[edit]

Original:

| colspan="2" |
{{Categorise/lang}}
empty

Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

substituted "text" for {{Categorise/lang}}

| colspan="2" |
text
empty

text

No blank space at bottom of box[edit]

Tried moving "text" up next to the pipe/bar | for that cell. This removed most of the blank space around the bottom cell.

| colspan="2" |text
empty
text

Placement of wikitext did not help when template in cell[edit]

Moving {{Categorise/lang}} up next to the pipe/bar | did not help.

| colspan="2" |
{{Categorise/lang}}

to

| colspan="2" |{{Categorise/lang}}
empty
Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

Padding[edit]

Tried something. Added style="padding-bottom:50px;"

| colspan="2" style="padding-bottom:50px;"|{{Categorise/lang}}
empty
Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−
| colspan="2" style="padding-bottom:50px;"|text
empty
text


Changed 50px to 0px. style="padding-bottom:0px;"

It did not help.

''| colspan="2" style="padding-bottom:0px;"|{{Categorise/lang}}''
empty
Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

Possible problem[edit]

How Mediawiki deals with nested templates may be the problem

In particular; the transclusion of the language template into the categorize template. {{Categorise/lang}} produces the line of language links: Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

Here is the relevant line of wikitext in the table:

| colspan="2" |{{Categorise/lang}}

Note below that it is not possible to put any words in front of the list of language links in the table without additional blank space/padding/lines being added to the table above and below the language links. I added the word "See" in front:

| colspan="2" |'''See''' {{Categorise/lang}}
empty
See Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

This added space due to the nested templates looks like part of the problem. See User talk:Timeshifter/Sandbox 2

Moving the wikitext solves one problem:

| colspan="2" |
'''See''' {{Categorise/lang}}
empty

See Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/−

But there is still the problem of the added margin around the bottom cell.

Table code, or indentation code, in front of template[edit]

See Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/− links in this sentence. Note that the line of links is templated into this sentence without problem, and without paragraph tags <p> being put around it.

But when I put an indentation colon (:) in front of the sentence there is a paragraph tag added in front of the template:

:'''See''' {{Categorise/lang}} '''links in this sentence.'''

See Alemannisch  asturianu  azərbaycanca  Bahasa Indonesia  Bahasa Melayu  Boarisch  català  čeština  dansk  Deutsch  Deutsch (Sie-Form)‎  English  español  Esperanto  euskara  français  galego  hrvatski  interlingua  italiano  Lëtzebuergesch  lietuvių  magyar  Nederlands  Nordfriisk  norsk bokmål  norsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  svenska  suomi  Tiếng Việt  Türkçe  Zazaki  Ελληνικά  беларуская (тарашкевіца)‎  македонски  русский  тоҷикӣ  українська  ქართული  हिन्दी  অসমীয়া  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(简体)‎  中文(繁體)‎  עברית  العربية  فارسی  မြန်မာဘာသာ  +/− links in this sentence.

So either table wikitext or indentation wikitext in front of the template code causes Mediawiki to put a paragraph tag <p> in front of the template.

One can see this by looking at "page source" from the view menu of the Firefox browser. Or "source" from the view menu of Internet Explorer browser.