Knowledge

User:Waldyrious/formatcitations

Source 📝

64:
Note that neither replacement produces any visible change in the rendered output of the page. The objective is solely to make the wikicode cleaner and easier to read and edit.
43:
Each tab implements one of the supported behaviors: regular (tab labeled "{{}}") and vertical (tab labeled "{{}}+"). Below is an example output for each:
27: 61:{{cite web | url = http://example.com | title = Example | author = John Doe | date = 1 January 2000 }} 73: 52:{{cite web |url = http://example.com |title = Example |author = John Doe |date = 1 January 2000 }} 8: 57:
Vertical mode (automatically aligns the equal signs depending on the longest parameter):
47:
Regular mode (adds spaces before and after equal signs, and before the pipe characters):
34: 17: 30:
that performs automatic harmonization of whitespace in citation templates (
26:
This script adds two tabs to the mediawiki interface, which trigger a
78:{{subst:iusc|1=User:Waldyrious/formatcitations.js}} 14: 23: 24: 88: 67: 13: 1: 7: 10: 93: 72:Add the following code to 74:your common.js page 84: 79: 53: 39: 33: 92: 91: 87: 86: 85: 83: 82: 81: 77: 70: 62: 51: 37: 31: 22: 21: 20: 18:User:Waldyrious 12: 11: 5: 90: 69: 66: 60: 59: 58: 49: 48: 15: 9: 6: 4: 3: 2: 89: 80: 75: 65: 56: 55: 54: 46: 45: 44: 41: 36: 29: 19: 71: 68:Installation 63: 50: 42: 38:}} 32:{{ 25: 40:, etc.). 35:cite web 28:script 16:< 76::

Index

User:Waldyrious
script
cite web
your common.js page

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.